/*
 * @Author: yanjikun
 * @Date: 2022-05-20 10:26:04
 * @LastEditors: yanjikun
 * @LastEditTime: 2022-05-20 11:33:21
 * @Description: file content
 */

import { BasicHelpProps } from '@/components/BasicHelp'
import { dividerProps } from 'ant-design-vue/lib/divider'
import { ExtractPropTypes, PropType } from 'vue'

export const basicCardProps = {
  ...dividerProps(),
  title: {
    type: String as PropType<string>,
    default: '',
  },
  helpMessage: {
    type: [String, Array] as PropType<string | string[]>,
    default: '',
  },
  helpObject: {
    type: Object as PropType<Omit<BasicHelpProps, 'text'>>,
    default: () => ({}),
  },
  showHelp: {
    type: Boolean as PropType<boolean>,
    default: false,
  },
}

export type BasicCardProps = Partial<ExtractPropTypes<typeof basicCardProps>>
